package com.gtfrank.web.servlet.day1;

import javax.servlet.*;
import java.io.IOException;

/**
 * @ProjectName: sudacoursetrainging
 * @ClassName: HelloServlet
 * @PackageName:com.gtfrank.web.servlet.day1
 * @Description: 第一个servlet
 * @Author: frank
 * @Date: 2021/4/23 11:22
 * @Version v1.0
 */
public class HelloServlet implements Servlet {
    @Override
    public void destroy() {
        System.out.println("HelloServlet.destroy()");

    }

    @Override
    public ServletConfig getServletConfig() {

        return null;
    }

    @Override
    public String getServletInfo() {

        return null;
    }

    @Override
    public void init(ServletConfig config) throws ServletException {
        System.out.println("HelloServlet.init()");

    }

    @Override
    public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
        System.out.println("HelloServlet.service()");

    }
}
